//
//  FontAndColorMacros.h
//  MiAiApp
//
//  Created by 徐阳 on 2017/5/18.
//  Copyright © 2017年 徐阳. All rights reserved.
//

//字体大小和颜色配置

#ifndef FontAndColorMacros_h
#define FontAndColorMacros_h

#pragma mark -  间距区

//默认间距
#define KNormalSpace 12.0f

#pragma mark -  颜色区
//主题色 导航栏颜色
#define CNavBgColor  [UIColor colorWithHexString:@"00AE68"]
//#define CNavBgColor  [Ulor colorWithHexString:@"ffffff"]
#define CNavBgFontColor  [UIColor colorWithHexString:@"ffffff"]

//默认页面背景色
#define CViewBgColor [UIColor colorWithHexString:@"f2f2f2"]

//分割线颜色
#define CLineColor [UIColor colorWithHexString:@"ededed"]

//次级字色
#define CFontColor1 [UIColor colorWithHexString:@"1f1f1f"]

//再次级字色
#define CFontColor2 [UIColor colorWithHexString:@"5c5c5c"]

//苹方-简 中黑体 PingFangSC-Medium
//苹方-简 中粗体 PingFangSC-Semibold
//苹方-简 细体 PingFangSC-Light
//苹方-简 常规体 PingFangSC-Regular
#define kFont(FONTSIZE) [UIFont systemFontOfSize:FONTSIZE]

//苹方-简 常规体 PingFangSC-Regular
#define kFontMedium(FONTSIZE) [UIFont boldSystemFontOfSize:FONTSIZE]

#define kDefaultImage [UIImage imageNamed:@"defaultImage"]

#pragma mark -  字体区


#define FFont1 [UIFont systemFontOfSize:12.0f]

/*判断是否为iPhone */
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
/*判断是否为iPhoneX*/
#define ISiPhoneX ([[UIScreen mainScreen] bounds].size.width >=375.0f && [[UIScreen mainScreen] bounds].size.height >=812.0f&& IS_IPHONE)
#define ISiPhoneX_HP ([[UIScreen mainScreen] bounds].size.height >=375.0f && [[UIScreen mainScreen] bounds].size.width >=812.0f&& IS_IPHONE)
#define SafeAreaTopHeight (ISiPhoneX ? 91 : 64)
#define SafeAreaBottomHeight (ISiPhoneX ? 34 : 0)
#define kSafeAreaViewH (kScreenHeight - SafeAreaTopHeight - SafeAreaBottomHeight)
#define kTableViewH (kScreenHeight-SafeAreaTopHeight-SafeAreaBottomHeight-44) //tableView实际高度
#define kTableViewH_50 (kScreenHeight-SafeAreaTopHeight-SafeAreaBottomHeight-50) //tableView实际高度
#define kBottomViewH (SafeAreaBottomHeight+TEMPLATE_HEIGHT)
#define kBottomViewH_50 (SafeAreaBottomHeight+50)
#define kStatusBarH (ISiPhoneX?44:20)
#define kNonaviStatusBarH (ISiPhoneX?0:0)
#define kIsFullScrennIphone [ZCTool isFullScreenIphone]//是否是全面屏手机


//~~~~~~~~~~~~~~~~~~~~~~~~宏定义定义尺寸~~~~~~~~~~~~~~~~~~~~~~~~
#define STRING_SIZE_FONT(_width_, _string_, _fsize_) [_string_ boundingRectWithSize:CGSizeMake(_width_, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName: _fsize_} context:nil].size;

#endif /* FontAndColorMacros_h */
